import request from './request'
/**
 * 
 * @returns 
 * 获取设备的MQTT
 */
export const getDeviceMqttConfig = (id) => {
    return request({
        url: `/getDeviceMqttConfig/${id}`,
        method: 'get',
    })
}
/**
 * 
 * @returns 
 * 
 */

export const editDeviceMqttConfig = (data) => {
    return request({
        url: '/setDeviceMqttConfig',
        method: 'post',
        data
    })
}